﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="reg_edu.aspx.cs" Inherits="lcmyjobs.Web.users.reg_edu"  MaintainScrollPositionOnPostback="true"%>

<%@ Register src="../Controls/foot.ascx" tagname="foot" tagprefix="uc1" %>
<%@ Register src="../Controls/Bottom1.ascx" tagname="Bottom1" tagprefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/drag.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <script src="../Scripts/major_arr.js" type="text/javascript"></script>
    <script src="../Scripts/major_func.js" type="text/javascript"></script>
    <link href="../Styles/css.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/industry_func.js" type="text/javascript"></script>
    <script src="../Scripts/industry_arr.js" type="text/javascript"></script>
     <link href="../css/h_edu.css" rel="stylesheet" type="text/css" />
   
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style1 tr{ height:28px;}
        .times , .times1
        {
            width: 70px;
        }
        .style2
        {
            text-align: right;
        }
       
        .style3
        {
            width: 100%;
        }
       
        .style4
        {
            width: 255px;
        }
       
    </style>
</head>
<body>
    <form id="form1" runat="server">
     <div id="wrapper">
    <div class="top">
	    <div class="logo"></div>
		<div class="geri">个人求职注册</div>
		<div class="site_title">
			<div class="site_title1"></div>
			<div class="site_title2">
				 <ul>
				     <li>基本资料&bull;联系方式</li>
					 <li>&nbsp; &rarr; &nbsp;</li>
					 <li class="curbar">教育背景&bull;工作经验</li>
					 <li>&nbsp; &rarr; &nbsp;</li>
					 <li>求职意向</li>
					 <li>&nbsp; &rarr; &nbsp;</li>
					 <li>管理中心（找工作）</li>
				 </ul>
		  </div>
		</div>
	</div>
	<div class="geet">
	    <div align="center">
            <span>&nbsp;&nbsp;欢迎注册个人会员!</span>
        </div>
        <div style=" height:10px;"></div>
        <p align="center">
            <em>友情提示：带*的项目为必填项；虚假的简历将不能通过审核并被及时删除！</em>
        </p>
  </div> 
    <div class="middle">
    <div class="main_data"><!--one-->
	      <div class="main_data_title"><h3>教育背景</h3></div>
          <br />

			 <div class="main_data_list" style="margin-left:100px;">
    <div>
     <table cellSpacing="0" cellPadding="0" width="800px" border="0" class="tbmy" >
	<tr>
	    <td height="25" class="txtalign">
		    <span class="style2">*</span><span class="words" >最高学历：</td>
	    <td height="25" width="250px" align="left">
	        <asp:DropDownList ID="ddledu" runat="server" width="183px" CssClass="inputText3">
            <asp:ListItem Value="2" Text="初中" Selected="True"></asp:ListItem>
            <asp:ListItem Value="3" Text="高中" ></asp:ListItem>
            <asp:ListItem Value="4" Text="中专/中技" ></asp:ListItem>
            <asp:ListItem Value="5" Text="大专" ></asp:ListItem>
            <asp:ListItem Value="6" Text="本科" ></asp:ListItem>
            <asp:ListItem Value="7" Text="硕士" ></asp:ListItem>
            <asp:ListItem Value="8" Text="博士" ></asp:ListItem>
            </asp:DropDownList>
	    </td>
	    <td height="25" width="*" align="left" class="listmsg">
	    </td>
    </tr>
	<tr>
	    <td height="25" class="txtalign">
		    <span class="style2">*</span><span class="words" >学历类型：</td>
	    <td height="25" width="250px" align="left">
	        <asp:DropDownList ID="DDL_EDU_TYPE" runat="server" width="183px" CssClass="inputText3">
                <asp:ListItem Value="2" Text="统招" Selected="True"></asp:ListItem>
                <asp:ListItem Value="3" Text="委培"></asp:ListItem>
                <asp:ListItem Value="4" Text="自费"></asp:ListItem>
                <asp:ListItem Value="5" Text="成人高考"></asp:ListItem>
                <asp:ListItem Value="6" Text="自学考试"></asp:ListItem>
                <asp:ListItem Value="7" Text="电大"></asp:ListItem>
                <asp:ListItem Value="8" Text="远程教育"></asp:ListItem>
                <asp:ListItem Value="9" Text="函授"></asp:ListItem>
                <asp:ListItem Value="10" Text="党校"></asp:ListItem>
                <asp:ListItem Value="11" Text="网络教育"></asp:ListItem>
                <asp:ListItem Value="12" Text="其他"></asp:ListItem>
            </asp:DropDownList>
	    </td>
	    <td height="25" width="*" align="left" class="listmsg">
	    </td>
    </tr>
	<tr>
	    <td height="25" class="txtalign">
		    <span class="style2">*</span><span class="words" >毕业学校：</td>
	    <td height="25" width="250px" align="left" colspan="2">
		    <asp:TextBox id="txtschool" runat="server"  CssClass="inputText3"></asp:TextBox>
	        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtschool" ErrorMessage="RequiredFieldValidator">不能为空</asp:RequiredFieldValidator>
	    </td>
    </tr>
	<tr>
	    <td height="25" class="txtalign">
		    <span class="style2">*</span><span class="words" >毕业时间：</td>
	    <td height="25" width="*" align="left" colspan="2">
		    <asp:TextBox id="txteduyear" runat="server" Width="50px" onfocus="WdatePicker({dateFmt:'yyyy',readOnly:true})" CssClass="inputText1"></asp:TextBox>&nbsp;年
	        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txteduyear" ErrorMessage="RequiredFieldValidator">不能为空</asp:RequiredFieldValidator>
	    </td>
    </tr>
	<tr>
	        <td height="25" class="txtalign" valign="top" style="padding-top:8px;">
		        <span class="style2">*</span><span class="words" >专业名称：</td>
	        <td height="25" width="250px" align="left">
		        <asp:TextBox ID="txtmajor" runat="server"  CssClass="inputText3"></asp:TextBox>
                 <span id="majormsg" style=" color:#ff6600;"></span>
                  <br />
                <asp:TextBox ID="txtmajorother" runat="server"  CssClass="inputText3" onclick="majorother()" onfocus="majorother()" onblur="majorotherout()" style=" margin:4px 0; color:#565D63;">若无合适选项在此处填写</asp:TextBox>
                <asp:HiddenField 
                    ID="hfmajor" runat="server" />
                <asp:HiddenField ID="hfmajor1" runat="server" />
                <asp:HiddenField ID="hfmajor2" runat="server" />
            </td>
	        <td height="25" width="*"  class="listmsg2">
		            可以选择两个，建议您先选择第一专业名称，再选择第二专业名称<br /> <span style="color:#ff6600"> 初中/高中，选择“基础教育”</span>
            </td>
        </tr>
	<tr>
	<td height="25" class="txtalign" valign="top" style="padding-top:15px;">
		<span class="style2">*</span><span class="words"  >外语：</td>
	<td  height="25" width="250px" align="left" >
            <div id="languages">
		        <select id="selange" name="selange" class="inputText3" style="width:66px;">
                    <option value="2" selected="true" >英语</option>
                    <option value="3">日语</option>
                    <option value="4">法语</option>
                    <option value="5">德语</option>
                    <option value="6">阿拉伯语</option>
                    <option value="7">西班牙语</option>
                    <option value="8">俄语</option>
                    <option value="9">韩语</option>
                    <option value="10">葡萄牙语</option>
                    <option value="11">意大利语</option>
                    <option value="12">波斯语</option>
                    <option value="13">土耳其语</option>
                    <option value="14">希腊语</option>
                    <option value="15">瑞典语</option>
                    <option value="16">印地语</option>
                    <option value="17">其他</option>
                </select>&nbsp;&nbsp;
                水平：<select id="selevel" name="selevel" style="width:66px; " class="inputText2">
                    <option value="1">初级</option>
                     <option value="2">熟练</option>
                      <option value="3">精通</option>
                </select>
                <br />
                <div id="languages2">
                </div>
                  
                </div>
                <asp:HiddenField 
                    ID="hflanguage" runat="server" />
                <asp:HiddenField ID="hflanguage1" runat="server" />
                <asp:HiddenField ID="hflanguage2" runat="server" />

                
        </td>
            <td id="td_uplang" height="25" width="*"  class="listmsg2" style="vertical-align: bottom; padding-bottom:8px;">
                  <div style="height:25px;">
                        <a id="uplang" href="#" onclick="javascript:uplanguage();return false;" class="bgbtn" style=" float:left; ">点击增加</a> 
                    </div>
            </td>
    </tr>
        <tr>
    	    <td height="25" style=" padding-left:143px; color:#565d63;" colspan="3">
                您精通或熟练应用的第二外语；没有学习外语，选择“其他”
            </td>
        </tr>
	<tr>
	<td height="25" class="txtalign">
		<span class="style2">*</span><span class="words" >证书：</td>
	<td  height="25" width="250px" align="left" colspan="2">
        <asp:TextBox ID="txtcertificate" runat="server"  CssClass="inputText3" Height="50px" TextMode="MultiLine">无</asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
            ControlToValidate="txtcertificate" ErrorMessage="RequiredFieldValidator" >不能为空</asp:RequiredFieldValidator>
        </td></tr>
	
	<tr>
	    <td height="25" style=" padding-left:143px; color:#565d63;" colspan="3">
            <span style="color:#ff6600;" >温馨提示：</span>您获得的计算机证书、会计证书、职称证书、技能证书等，填写将增加您的求职砝码；没有，填写“无”
        </td>
	</tr>

    <tr style="display:none">
	    <td height="25" class="txtalign">
		    <span class="style2">*</span><span class="words" >您是：</span></td>
	    <td height="25" align="left" class="style4" style="padding-left:0px;">
            
		    <asp:RadioButton ID="rbtold" runat="server" Checked="true" GroupName="type" Text=" 往届生" onclick="chlist()"/>
            <asp:RadioButton ID="rbtnew" runat="server" Checked="false" GroupName="type" 
                Text=" 在校生&bull;应届生"  onclick="chlist()"/>
            <asp:RadioButton ID="rbthide" runat="server" Checked="false" GroupName="type" Text="haha"  CssClass="nodisplay" />
	    </td>
	    <td height="25" width="*"  class="listmsg2" >
		    正确的人才类别，能使更多招聘单位准确搜索到您的简历
        </td>
    </tr>
	<tr class="gz">
	    <td height="25" class="txtalign" >
		    <span class="style2">*</span><span class="words"  >工作经验：</span>
        </td>
	    <td height="50" width="*" align="left" colspan="2" >
            <asp:TextBox ID="txtExp" runat="server" Width="39px">0</asp:TextBox>		    
	        年<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtExp" Display="Dynamic" ErrorMessage="RequiredFieldValidator">不能为空</asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtExp" ErrorMessage="CompareValidator" Operator="DataTypeCheck" Type="Integer">只能是整数</asp:CompareValidator>
	    </td>
    </tr>
	
	</table>
    </div>
    </div>
    	  <div class="main_data_title"><h3>工作经验</h3></div>
    </div>
      <div class="main_data"><!--two-->
	        <div class="main_data_list" style="margin-left:100px;">
			   	 <table cellspacing="0" cellpadding="0" width="800px" border="0">
                    
	                 <tr class="gz">

	                     <td height="25" colspan="3" >
                            <div style="width:100%;" id="insert_old_job">
                                <h3  style="width:100%; text-align:center; height:50px; vertical-align:middle; line-height:50px; font-size:14px;"><span class="style2" style="padding-left:0px;padding-right:8px; ">*</span>从事过的单位</h3>
                            </div>
                            <div style="width:100%; float:right;display:none" id="show_add_job" ><a href="javascript:void(0)" onclick="javascript:showaddjob(this)" class="bgbtn" style=" margin-top:8px; line-height:27px;float:right;margin-right:108px;">继续添加</a></div>
		                    <table id="myoldjob" class="style1" border="0" cellpadding="0" cellspacing="0" align="center">
       
                                <tr class="job_adding">
                                    <td height="25" class="txtalign">
                                        <span class="style2">*</span><span class="words" >企业名称：</span>
                                    </td>
                                    <td  height="25" width="250px" align="left">
                                        <input id="Text1" type="text" class="unit inputText3" /><span class="check_unit" style=" color:#ff6600;"></span></div>
                                    </td>
                                    <td  height="25" width="*"  class="listmsg2">
                                        <span style=" font-size:12px; color:#ff6600; ">温馨提示：</span><span style="color:#565d63;  font-size:12px; text-align:left; width:300px; display:inline-block; vertical-align:top;">从事过的单位，您考虑隐私风险，不愿意公开，建议您将公司名称以★★代替</span>
                                    </td>

                                </tr>
                                <tr class="job_adding">
                                    <td height="25" class="txtalign">
                                        <span class="style2">*</span><span class="words" >所属行业：</span>
                                    </td>
                                    <td  height="25" width="275px" align="left">
                                        <input id="Text2" type="text" class="trade inputText3" onclick="IndustrySelect_2(this)"  /><span class="check_trade" style=" color:#ff6600;"></span></div>
                                    </td>
                                </tr>
                                <tr class="job_adding">
                                    <td height="25" class="txtalign" >
                                        <span class="style2">*</span><span class="words" >从事岗位：</span>
                                    </td>
                                    <td  height="25" width="275px" align="left">
                
                                        <input id="Text3" type="text" class="job inputText3"  value="可写两个,用逗号分开" onclick="myjobtt(this)" onfocus="myjobtt(this)" onblur="myjobout(this)" /><span class="check_job" style=" color:#ff6600;"></span>
                
                                    </td>
                                </tr>
                                <tr class="job_adding">
                                    <td height="25" class="txtalign">
                                        <span class="style2">*</span><span class="words" >从事时间：</span>
                                    </td>
                                    <td  height="25" width="275px" align="left">
                                        <input id="Text4" type="text" class="times  inputText3" style="width:72px;" onfocus="WdatePicker({dateFmt:'yyyy年MM月',readOnly:true})" />&nbsp;到&nbsp;<input id="Text5" type="text" class="times1 inputText2" style="width:72px;"  onfocus="WdatePicker({dateFmt:'yyyy年MM月',readOnly:true})" /><span class="check_time" style=" color:#ff6600;"></span>
                                    </td>
            
                                </tr>
                                <tr>
                                    <td  height="35" width="100%" colspan="3" align="left">
                                         <a href="javascript:void(0)" onclick="javascript:add()" class="bgbtn" style="margin-left:141px; font-size:12px; float:left;">上传</a> <!--<a href="#" onclick="javascript:del(this)" class="bgbtn">删除</a>-->
                                    </td>
                                </tr>

                            </table>
                            <asp:HiddenField ID="hfoldjob" runat="server" />
	                        <asp:HiddenField ID="hfoldjob1" runat="server" />
	                        <asp:HiddenField ID="hfoldjob2" runat="server" />
	                    </td>
	                </tr>
	<tr class="gz" style="margin-top:14px;">
        <td  width="100%"  >     
            <div style="width:100%;" id="Div2"><h3  style="width:100%; text-align:center; height:50px; vertical-align:middle; line-height:50px; font-size:14px;"><span class="style2" style="padding-left:0px;padding-right:8px; ">*</span>从事过的岗位职责</h3></div>
        </td>
    </tr>
	<tr class="gz" style="margin-top:14px;">
	    <td width="100%" align="left" style="text-align:left; " >
          <div style="margin:0 0 3px 80px; height:130px; width:620px; float:left;">
                 <asp:TextBox id="txtoldjobduty" runat="server" Width="620px" Height="130px" 
                TextMode="MultiLine"></asp:TextBox><span id="jobdutymsg" style=" color:#ff6600;">
            </span>
            </div>
        </td>
        <!--
	    <td height="25" width="*" align="left" colspan="2">
	    </td>
        -->
    </tr>
	<tr class="gz" style="margin-top:14px;">
        <td  width="100%"  >     
            <div style="width:100%;" id="Div1"><h3  style="width:100%; text-align:center; height:50px; vertical-align:middle; line-height:50px; font-size:14px;"><span class="style2" style="padding-left:0px;padding-right:8px; ">*</span>工作业绩&bull;获得荣誉</h3></div>
        </td>
    </tr>
	<tr class="gz"  style="margin-top:14px;" >
	    <td  width="100%"  align="left" style="text-align:left; " colspan="3">
            <div style="margin:0 0 10px 80px; height:130px; width:620px; float:left;">
                <asp:TextBox id="txthonour" runat="server" Width="620px" Height="130px" 
                            TextMode="MultiLine"></asp:TextBox>
            </div>
        </td>
    </tr>
	<tr class="gz" style="margin-top:14px; ">
        <td  width="100%"  >     
            <div style=" text-align:center; display:none;">
                <span style=" padding-left:0px; font-size:12px; color:#ff6600; ">温馨提示：<span style="color:#565d63;">“工作业绩&bull;获得荣誉”也是<span style="color:#ff6600;">必填项</span>；否则不能通过网站审核</span></span>
            </div>
        </td>
    </tr>
    <!--
    <tr>
         <td  height="25" width="*"  class="listmsg2" colspan="3">
                
         </td>
    </tr>
    -->
    <tr class=zx>
        <td    width="100%"  align="left" style="text-align:left; " colspan="3">
            <div  style=" width:140px; vertical-align:middle; float:left;  padding-top:40px; text-align:right; ">
		        <span class="style2" style="padding-left:0px;padding-right:8px; ">*</span><span class="words"  style="padding-left:0px;padding-right:0px; ">自我评价&bull;特长爱好：</span>
	        </div>
            <div style="margin:14px 0 14px 2px; height:130px; width:400px; float:left;">
            	<asp:TextBox id="txtmyvalution" runat="server" Width="400px" Height="130px" 
                    TextMode="MultiLine"></asp:TextBox>
	            <span id="myvalutionmsg" style=" color:#ff6600;"></span>
            </div>
        </td>
        
    </tr>
    <!--
	<tr class="zx">
	<td height="25" style=" padding-left:85px; letter-spacing:2px; font-size:14px;" colspan="3">
		<span class="style2">*</span><span class="words" >自我评价&bull;特长爱好：</td>
	                 </tr>
                  
	<tr class="zx">
	<td height="25" class="txtalign">
		&nbsp;</td>
	<td height="25" width="*" align="left" colspan="2">
	
	    </td></tr>
           -->
                 </table>
                    
			 </div>
	    </div>
    </div>

    <div class="button">
	  <asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" CssClass="btn" 
            Text="下一步" onclientclick="return save()"/>
	</div>

	<!--底部-->
    <uc2:Bottom1 ID="Bottom11" runat="server" />
	<!--底部-->
</div>

    </form>
    <div style="DISPLAY: none" id="maskLayer"><iframe 
style="filter: alpha(opacity=50)" id="maskLayer_iframe" src="about:blank" 
frameBorder="0" scrolling="no"></iframe >
<div style="filter: alpha(opacity=50); -moz-opacity: 0.5; opacity: 0.5" 
id="alphadiv"></div>
<div id="drag">
<h3 id="drag_h"></h3>
<div id="drag_con"></div><!-- drag_con end --></div></div><!-- maskLayer end -->
<div></div><!-- alpha div end -->
<div style="display: none" id="sublist"></div>
 <script language="javascript" type="text/javascript">
     var i = 2;
     $().ready(function () {
         var majors, languages, jobs;
         $("#txtmajor").bind("click", function () { majorSelect(2); });
         majors = $('#<%= hfmajor2.ClientID%>').val();
         if (majors != "") {
             //             if (majors.substring(0, 1) == "@") {
             //                 $('#<%= txtmajor.ClientID%>').val(majors.substring(1));
             //                 $("#Checkbox1").attr("checked", "true");
             //                 $('#<%= hfmajor.ClientID%>').val("other");
             //                 $("#txtmajor").unbind();
             //             }
             //             else {

             $("#txtmajor").val(majors);
             m_flag_arr = getmyids(majors);
             //             }
         }
         if ($('#<%= hflanguage2.ClientID%>').val() != "") {
             languages = $('#<%= hflanguage2.ClientID%>').val().split(",");
             $("#selange").val(languages[0]);
             $("#selevel").val(languages[1]);
             if (languages.length > 2) {
                 uplanguage();
                 $("#selange1").val(languages[2]);
                 $("#selevel1").val(languages[3]);
             }
         }
         if ($('#<%= hfoldjob2.ClientID%>').val() != "") {
             jobs = $('#<%= hfoldjob2.ClientID%>').val().split("|");
             $("#Text1").val(jobs[0]);
             $("#Text2").val(jobs[1]);
             $("#Text3").val(jobs[2]);
             $("#Text4").val(jobs[3].substring(0, jobs[3].indexOf('到')));
             $("#Text5").val(jobs[3].substring(jobs[3].indexOf('到') + 1));
             add();
             if (jobs.length > 4) {
                 
                 $("#Text1").val(jobs[4]);
                 $("#Text2").val(jobs[5]);
                 $("#Text3").val(jobs[6]);
                 $("#Text4").val(jobs[7].substring(0, jobs[7].indexOf('到')));
                 $("#Text5").val(jobs[7].substring(jobs[7].indexOf('到') + 1));
                 add();
             }
             if (jobs.length > 8) {
                 
                 $("#Text1").val(jobs[8]);
                 $("#Text2").val(jobs[9]);
                 $("#Text3").val(jobs[10]);
                 $("#Text4").val(jobs[11].substring(0, jobs[11].indexOf('到')));
                 $("#Text5").val(jobs[11].substring(jobs[11].indexOf('到') + 1));
                 add();
             }
             if (jobs.length > 12) {    // 3
                 
                 $("#Text1").val(jobs[12]);
                 $("#Text2").val(jobs[13]);
                 $("#Text3").val(jobs[14]);
                 $("#Text4").val(jobs[15].substring(0, jobs[15].indexOf('到')));
                 $("#Text5").val(jobs[15].substring(jobs[15].indexOf('到') + 1));
                 add();
             }
             if (jobs.length > 16) {    // 4
                 
                 $("#Text1").val(jobs[16]);
                 $("#Text2").val(jobs[17]);
                 $("#Text3").val(jobs[18]);
                 $("#Text4").val(jobs[19].substring(0, jobs[19].indexOf('到')));
                 $("#Text5").val(jobs[19].substring(jobs[19].indexOf('到') + 1));
                 add();
             }
             if (jobs.length > 20) {    // 5
                 
                 $("#Text1").val(jobs[20]);
                 $("#Text2").val(jobs[21]);
                 $("#Text3").val(jobs[22]);
                 $("#Text4").val(jobs[23].substring(0, jobs[23].indexOf('到')));
                 $("#Text5").val(jobs[23].substring(jobs[23].indexOf('到') + 1));
                 add();
             }
             if (jobs.length > 24) {    // 6
                 
                 $("#Text1").val(jobs[24]);
                 $("#Text2").val(jobs[25]);
                 $("#Text3").val(jobs[26]);
                 $("#Text4").val(jobs[27].substring(0, jobs[27].indexOf('到')));
                 $("#Text5").val(jobs[27].substring(jobs[27].indexOf('到') + 1));
                 add();
             }
             if (jobs.length > 28) {    // 7
                 
                 $("#Text1").val(jobs[28]);
                 $("#Text2").val(jobs[29]);
                 $("#Text3").val(jobs[30]);
                 $("#Text4").val(jobs[31].substring(0, jobs[31].indexOf('到')));
                 $("#Text5").val(jobs[31].substring(jobs[31].indexOf('到') + 1));
                 add();
             }
             if (jobs.length > 32) {    // 8
                 
                 $("#Text1").val(jobs[32]);
                 $("#Text2").val(jobs[33]);
                 $("#Text3").val(jobs[34]);
                 $("#Text4").val(jobs[35].substring(0, jobs[35].indexOf('到')));
                 $("#Text5").val(jobs[35].substring(jobs[35].indexOf('到') + 1));
                 add();
             }
             if (jobs.length > 36) {    // 9
                 
                 $("#Text1").val(jobs[36]);
                 $("#Text2").val(jobs[37]);
                 $("#Text3").val(jobs[38]);
                 $("#Text4").val(jobs[39].substring(0, jobs[39].indexOf('到')));
                 $("#Text5").val(jobs[39].substring(jobs[39].indexOf('到') + 1));
                 add();
             }
             if (jobs.length > 40) {    // 10
                 
                 $("#Text1").val(jobs[40]);
                 $("#Text2").val(jobs[41]);
                 $("#Text3").val(jobs[42]);
                 $("#Text4").val(jobs[43].substring(0, jobs[43].indexOf('到')));
                 $("#Text5").val(jobs[43].substring(jobs[43].indexOf('到') + 1));
                 add();
             }
         }
         if ($("#rbtnew").attr("checked")) {
             $(".gz").hide();
             $(".zx").show();

         }
         else {
             $(".gz").show();
             $(".zx").hide();

         }

         if ($("#rbthide").attr("checked")) {
             $(".gz").hide();
             $(".zx").hide();
         }



     });
     function chlist() {
         if ($("#rbtnew").attr("checked")) {
             $(".gz").hide();
             $(".zx").show();

         }
         else {
             $(".gz").show();
             $(".zx").hide();

         }
     }
     function in_array(needle, haystack) {
         if (typeof needle == 'string' || typeof needle == 'number') {
             for (var i in haystack) {
                 if (haystack[i] == needle) {
                     return true;
                 }
             }
         }
         return false;
     }
     function uplanguage() {
         var t = $("#uplang").html();
         if (t == "点击增加") {
             $("#languages2").append('<div id="addlang"><select id="selange1" name="selange1"  class="inputText2" style="width:66px;">' +
            '<option value="2" selected="true">英语</option>' +
           ' <option value="3">日语</option>' +
            '<option value="4">法语</option>' +
           ' <option value="5">德语</option>' +
            '<option value="6">阿拉伯语</option>' +
           ' <option value="7">西班牙语</option>' +
           ' <option value="8">俄语</option>' +
           ' <option value="9">韩语</option>' +
           ' <option value="10">葡萄牙语</option>' +
           ' <option value="11">意大利语</option>' +
           ' <option value="12">波斯语</option>' +
           ' <option value="13">土耳其语</option>' +
           ' <option value="14">希腊语</option>' +
           ' <option value="15">瑞典语</option>' +
           ' <option value="16">印地语</option>' +
            '<option value="17">无</option>' +
        '</select>&nbsp;&nbsp;' +
       ' 水平：<select id="selevel1" name="selevel1"  class="inputText2" style="width:66px;">' +
           ' <option value="1">初级</option>' +
            ' <option value="2">熟练</option>' +
              '<option value="3">精通</option>' +
       ' </select></div>');
             $("#uplang").html("删除");
             $("#td_uplang").css("padding-bottom","0");
         }
         else {
             $("#addlang").remove();
             //$("#selevel1").remove();
             $("#uplang").html("点击增加");
             $("#td_uplang").css("padding-bottom", "8px");
         }

     }
     function save() {

         if ($("#txtmajor").val() == "" && $("#txtmajorother").val() == "若无合适选项在此处填写") {
             $("#majormsg").html("不能为空");
             return false;
         }
         else {
             $("#majormsg").html("");
         }
         if ($("#rbtnew").attr("checked")) {
             if ($("#txtmyvalution").val() == "") {
                 $("#myvalutionmsg").html("不能为空"); 
                 return false;
             }
             else {
                 $("#myvalutionmsg").html("");
             }

         }
         else {
             if ($("#txtoldjobduty").val() == "") {
                 $("#jobdutymsg").html("不能为空"); 
                 return false;
             }
             else {
                 $("#jobdutymsg").html("");
             }

             //var emp = "";
             if ($(".old_job_list").length > 0) {

             }
             else {
                 //$("#myoldjob tr:gt(0)").each(function () {
                 if ($("#Text1").val() == "") {
                     $(".check_unit").html("不能为空");
                     return false;
                 }
                 else {
                     $(".check_unit").html("");
                 }

                 if ($("#Text2").val() == "") {
                     $(".check_trade").html("不能为空");
                     return false;
                 }
                 else {
                     $(".check_trade").html("");
                 }

                 if ($("#Text3").val() == "") {
                     $(".check_job").html("不能为空");
                     return false;
                 }
                 else if ($("#Text3").val() == "可写两个,用逗号分开") {
                     $(".check_job").html("不能为空");
                     return false;
                 }
                 else {
                     $(".check_job").html("");
                 }

                 if ($("#Text4").val() == "" || $("#Text5").val() == "") {
                     $(".check_time").html("不能为空");
                     return false;
                 }
                 else {
                     $(".check_time").html("");
                 }
                 //});
                 /*
                 if (emp != "") {
                     
                     if ($("#hfoldjob1").val() == "" || $("#hfoldjob1").val()== null ) {
                     $("#oldjobmsg").html("不能有空值");
                     return false;
                     }
                     

                 }
                 else {
                     $("#oldjobmsg").html("");
                 }
                 */
             }
         }
         
         var mylange, myoldjob = "";
//         if ($("#Checkbox1").attr("checked")) {
//             $('#<%= hfmajor.ClientID%>').val("other");
//         }
//         else {
//             $('#<%= hfmajor.ClientID%>').val("");
//         }
         mylange = $("#selange").val() + "," + $("#selevel").val();
         if ($("#selange1").length > 0) {
             mylange += "|" + $("#selange1").val() + "," + $("#selevel1").val();
         }
         $('#<%= hflanguage.ClientID%>').val(mylange);

         $(".oldjob").each(function () { myoldjob += $(this).find(".unit").val().replace("|", "｜") + "|" + $(this).find(".trade").val().replace("|", "｜") + "|" + $(this).find(".job").val().replace("|", "｜") + "|" + $(this).find(".times").val().replace("|", "｜") + "到" + $(this).find(".times1").val().replace("|", "｜") + "|"; });
         //myoldjob += $('#<%= hfoldjob.ClientID%>').val();
         // $('#<%= hfoldjob.ClientID%>').val(myoldjob);

         // $("#myoldjob tr:gt(0)").each(function () { myoldjob += $(this).find(".unit").val().replace("|", "｜") + "|" + $(this).find(".trade").val().replace("|", "｜") + "|" + $(this).find(".job").val().replace("|", "｜") + "|" + $(this).find(".times").val().replace("|", "｜") + "到" + $(this).find(".times1").val().replace("|", "｜") + "|"; });
         //$(".job_adding").each(function () { myoldjob += $(this).find(".unit").val().replace("|", "｜") + "|" + $(this).find(".trade").val().replace("|", "｜") + "|" + $(this).find(".job").val().replace("|", "｜") + "|" + $(this).find(".times").val().replace("|", "｜") + "到" + $(this).find(".times1").val().replace("|", "｜") + "|"; });
         myoldjob += $("#Text1").val().replace("|", "｜") + "|" + $("#Text2").val().replace("|", "｜") + "|" + $("#Text3").val().replace("|", "｜") + "|" + $("#Text4").val().replace("|", "｜") + "到" + $("#Text5").val().replace("|", "｜") + "|";
         //myoldjob += $('#<%= hfoldjob.ClientID%>').val();
         $('#<%= hfoldjob.ClientID%>').val(myoldjob);

     }
     function del(delbtn) {
         $(delbtn).parent("div").parent("div").remove();
     }
     function add() {

           
         if ($("div.oldjob").length >= 9) {
             return;
         }

         // 原工作履历是否填写完整检验
         if ($("#Text1").val() == "") {
             $(".check_unit").html("不能为空");
             return false;
         }
         else {
             $(".check_unit").html("");
         }

         if ($("#Text2").val() == "") {
             $(".check_trade").html("不能为空");
             return false;
         }
         else {
             $(".check_trade").html("");
         }

         if ($("#Text3").val() == "") {
             $(".check_job").html("不能为空");
             return false;
         }
         else if ($("#Text3").val() == "可写两个,用逗号分开") {
             $(".check_job").html("不能为空");
             return false;
         }
         else {
             $(".check_job").html("");
         }

         if ($("#Text4").val() == "" || $("#Text5").val() == "") {
             $(".check_time").html("不能为空");
             return false;
         }
         else {
             $(".check_time").html("");
         }

        
         var oldunit = $("#Text1").val();
         var oldtrade = $("#Text2").val();
         var oldjob = $("#Text3").val();
         var oldtimestart = $("#Text4").val();
         var oldtimeend = $("#Text5").val();

         $("#Text1").val("");
         $("#Text2").val("");
         $("#Text3").val("");
         $("#Text4").val("");
         $("#Text5").val("");

         // var myoldjob = "";


         $(".oldjobnow").removeClass("oldjobnow");

         var peried = oldtimestart + "--" + oldtimeend;
         $("#insert_old_job").append('<div class="old_job_list" ><div class="old_job_list_item">' + peried + '</div><div class="old_job_list_item">' + oldunit + ' </div><div class="old_job_list_item">' + oldjob + ' </div><div class="old_job_list_item" style="width:80px;"><a href="javascript:void(0)" onclick="javascript:modify(this)" class="bgbtn" style="line-height:27px;">修改</a></div><div class="old_job_list_item" style="width:80px;"><a href="javascript:void(0)" onclick="javascript:del(this)" class="bgbtn" style="line-height:27px;">删除</a></div></div> ');

         //$("#myoldjob").append('<div class="oldjob oldjobnow" style="display:none;"><input id="Text1' + i + '" type="text" class="unit" /><input id="Text2' + i + '" type="text" class="trade"  /><input id="Text3' + i + '" type="text" class="job" /><input id="Text4' + i + '" type="text" class="times"  /><input id="Text5' + i + '" type="text" class="times1" /></div>');
         $("#insert_old_job .old_job_list:last").append('<div class="oldjob oldjobnow" style="display:none;"><input id="Text1' + i + '" type="text" class="unit" /><input id="Text2' + i + '" type="text" class="trade"  /><input id="Text3' + i + '" type="text" class="job" /><input id="Text4' + i + '" type="text" class="times"  /><input id="Text5' + i + '" type="text" class="times1" /></div>');
         //<tr class="job_adding"><td height="25" class="txtalign"><span class="style2">*</span><span class="words" >企业名称：</span></td><td  height="25" width="250px" align="left"><input id="Text1' + i + '" type="text" class="unit inputText3" /></td><td  height="25" width="*"  class="listmsg2"><span class="style2" style=" padding-left:0px; font-size:12px; ">温馨提示：<span style="color:#565d63;"  > 从事过的单位，您考虑隐私风险，不愿意公开，建议您将“公司名称”以★★代替；</span></span></td></tr><tr class="job_adding"><td height="25" class="txtalign"><span class="style2">*</span><span class="words" >所属行业：</span></td><td  height="25" width="275px" align="left"><input id="Text2' + i + '" type="text" class="trade inputText3" onclick="IndustrySelect_2(this)"  /></td> </tr><tr class="job_adding"> <td height="25" class="txtalign" ><span class="style2">*</span><span class="words" >从事岗位：</span></td><td  height="25" width="275px" align="left"><input id="Text3' + i + '" type="text" class="job inputText3" value="可写两个,用逗号分开" onclick="myjobtt(this)" onfocus="myjobtt(this)" onblur="myjobout(this)" /></td></td></tr><tr class="job_adding"><td height="25" class="txtalign"><span class="style2">*</span><span class="words" >从事时间：</span> </td><td  height="25" width="275px" align="left"> <input id="Text4' + i + '" type="text" class="times  inputText3" style="width:74px;" onfocus="WdatePicker({dateFmt:'yyyy年MM月',readOnly:true})" />&nbsp;到&nbsp;<input id="Text5" type="text" class="times1 inputText2" style="width:74px;"  onfocus="WdatePicker({dateFmt:'yyyy年MM月',readOnly:true})" /></td> </tr>')

         $(".oldjobnow .unit").val(oldunit);
         $(".oldjobnow .trade").val(oldtrade);
         $(".oldjobnow .job").val(oldjob);
         $(".oldjobnow .times").val(oldtimestart);
         $(".oldjobnow .times1").val(oldtimeend);

         i++;

             /*
        if ($("#myoldjob tr").length <= 3) {
             $("#myoldjob").append('<tr><td><input id="Text1' + i + '" type="text" class="unit" /></td><td><input id="Text2' + i + '" type="text" class="trade" onclick="IndustrySelect_2(this)"  /></td><td><input id="Text3' + i + '" type="text" class="job" value="可写两个,用逗号分开" onclick="myjobtt(this)" onfocus="myjobtt(this)" onblur="myjobout(this)" /></td><td><input id="Text4' + i + '" type="text" class="times" onfocus="WdatePicker({dateFmt:\'yyyy年MM月\',readOnly:true})" />到<input id="Text5' + i + '" type="text" class="times1" onfocus="WdatePicker({dateFmt:\'yyyy年MM月\',readOnly:true})" /></td><td><a href="#" onclick="javascript:del(this)" class="bgbtn">删除</a></td></tr>')
             i++;
        }
             */


         $("#myoldjob").hide();
         $("#show_add_job").show();
     }
     function majorother() {
         if ($("#txtmajorother").val() == "若无合适选项在此处填写") $("#txtmajorother").val("");        

     }
     function majorotherout() {
         
         if ($("#txtmajorother").val() == "") $("#txtmajorother").val("若无合适选项在此处填写");

     }
     function myjobtt(myput) {

         if ($(myput).val() == "可写两个,用逗号分开") $(myput).val("");
         


     }
     function myjobout(myput) {

         if ($(myput).val() == "") $(myput).val("可写两个,用逗号分开");

     }
     function changemajor(rad) {
         if ($(rad).attr("checked")) {
             $("#txtmajor").unbind().val("");
         }
         else {
             $("#txtmajor").bind("click", function () { majorSelect(2); });
             $('#<%= hfmajor.ClientID%>').val("");
         }
     }

     function showaddjob() {
         $("#myoldjob").show();
         $("#show_add_job").hide();
     }

     function modify(mdfbtn) {
         $("#myoldjob").show();
         $("#show_add_job").hide();

         $("#Text1").val($(mdfbtn).parent("div").parent("div").find(".oldjob").find(".unit").val().replace("|", "｜"));
         $("#Text2").val($(mdfbtn).parent("div").parent("div").find(".oldjob").find(".trade").val().replace("|", "｜"));
         $("#Text3").val($(mdfbtn).parent("div").parent("div").find(".oldjob").find(".job").val().replace("|", "｜"));
         $("#Text4").val($(mdfbtn).parent("div").parent("div").find(".oldjob").find(".times").val().replace("|", "｜"));
         $("#Text5").val($(mdfbtn).parent("div").parent("div").find(".oldjob").find(".times1").val().replace("|", "｜"));
         $(mdfbtn).parent("div").parent("div").remove();
     }
    </script>
</body>
</html>
